<%@ page language="java" import="java.util.*,com.hs.core.utils.*,com.hs.core.utils.*,com.hs.auth.model.*,com.hs.auth.*" pageEncoding="utf-8"%>
<%
      String pageStr = (String)request.getAttribute("pagestr");
   List datalist = (List)request.getAttribute("datalist");
   String pagenum = (String)request.getAttribute("pagenum");
   String pagecount = (String)request.getAttribute("pagecount");
   
	
   int pagenumInt = Integer.parseInt(pagenum==null?"0":pagenum);
   int pagecountInt = Integer.parseInt(pagecount==null?"0":pagecount);
   String orderName = (String)request.getAttribute("orderName");
   String orderNum = (String)request.getAttribute("orderNum");  
   String datarange = (String)request.getAttribute("datarange");  
   
   String onesql = (String)request.getAttribute("onesql");
   String searchtype = (String)request.getAttribute("searchtype");//基本检索、高级检索
   String issecond = (String)request.getAttribute("issecond"); 
   String tags = (String)request.getAttribute("tags"); 
   String searchstrinfo = (String)request.getAttribute("searchstrinfo"); 
   String keyword = (String)request.getAttribute("keyword"); 
   String beforesql = (String)request.getAttribute("beforesql"); 
   String paramstr = (String)request.getAttribute("paramstr"); 
   String onekeyword = (String)request.getAttribute("onekeyword"); 
   String onesearchinfo = (String)request.getAttribute("onesearchinfo"); 
   HsAccount accInfo = (HsAccount)session.getAttribute(AUTHConstant.USERINSESSION); 
   String accid = String.valueOf(accInfo==null?"":accInfo.getId());
   Map authMap = (Map)session.getAttribute("USERPOWER_"+accid); 
   if(authMap == null)
	authMap = new HashMap();
 
 boolean role4 = (authMap.get("CHD_ROLE4")!=null); //题录检索人员
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<%@ include file="../../include.jsp"%> 
 <script language=JavaScript>
var stype = <%=issecond%>;
if(stype !=null && stype !="" && stype!="0")
{
	var sbutton = window.parent.document.getElementById("secondsearch");
	sbutton.disabled=false;
}
 //题录信息
 function magaInfo(id)
{
	var pageURL = "<%=basePath %>data/magainfo.do?id=" + id;
	openwindow(pageURL,'800','600',''); 
}
//详细数据信息
 function auditInfo(id){
	var pageURL = "<%=basePath %>audit/auditlistFrame.do?id=" + id;
	openwindow(pageURL,'1000','800',''); 
    //window.location.href=pageURL;
 }
//排序
function orderPageLocal(cstr,orderNum){
 	  var conobj = window.parent.document.all.conditionurl;
	  if(conobj !=null && conobj !=undefined){
		  	var convalue = conobj.value;
		  	if(convalue.indexOf("?")!=-1 ){
		  		convalue +="&orderName="+cstr+"&orderNum="+orderNum;
		  	}else {
		  		convalue +="?orderName="+cstr+"&orderNum="+orderNum; 
		  	}
		  	window.parent.document.getElementById("bookframe").src = convalue;
	  } 
}
function exportResult(){
 	var checkObj =  document.all.checkmaga;
 	var magaid = "";
 	for(var i=0 ;i<checkObj.length; i++){
 		if(checkObj[i].checked){
 			magaid = magaid + checkObj[i].value + ",";
 		}
 	} 
 	if(magaid != ""){
 		var allsql = document.all.allsql.value;
 		document.exportform.action="<%=basePath%>search/exportMagaResult.do?magaid="+magaid+"&allsql="+ encodeURIComponent(allsql)+"&resulttype=1";	
  		document.exportform.submit();
 	}else{
 		alert("请选择要导出的数据!");
 	}
}
 
function exportAllResult(){
 	var allsql = document.all.allsql.value;
 	document.exportform.action="<%=basePath%>search/exportMagaResult.do?allsql="+ encodeURIComponent(allsql)+"&resulttype=2";	
  	document.exportform.submit();
 }
function viewresult(){


}
function changeDisplay(){
	var v = getRadioValue('displaytype');   
	window.parent.generalSearch(v,'');
}

function filterResultBasic(datatype){
   
    var paramstr = searchform.paramstr.value;  
    var onestr =  "?datarange="+datatype+paramstr; 
     //document.getElementById("resultlist").src="<%=basePath %>search/dosearch.do"+onestr;
    
    pageForm.action = "<%=basePath %>search/dosearch.do"+onestr;
 	pageForm.submit(); 
	//if(searchtype == 'basic_search'){
	    // alert(window.parent.searchinput.frameElement.src);
	    //parent.top.//.frames["searchinput"].generalSearch('',datatype);
	    
		//generalSearch('',datatype);
	//}else if(searchtype == 'advsearch'){
	  //  advSearch(datatype);
	//} 
}
function filterResult(datatype){
   
    /**var paramstr = searchform.paramstr.value;  
    var onestr =  "?datarange="+datatype;
    var strreplace = "datatype="+datatype;
    var sql = pageForm.searchSql.value;
    if("0" == datatype){
        
        var index = sql.indexOf("datatype=");
        if(-1 != index){
	        var sqlone = sql.substr(0,index);
	        var sqltwo = sql.substr(index+10,sql.length); 
	    	sql = sqlone + " 1=1" + sqltwo;
    	}
    } else{
       /** var index = sql.indexOf("1=");
        var count = 3;
        if(index == -1){
	        index = sql.indexOf("datatype=");
	        count = 10;
        }
        var sqlone = sql.substr(0,index);
        var sqltwo = sql.substr(index+count,sql.length); 
        //alert(sqlone);
        //alert(sqltwo);
	    sql = sqlone + " datatype=" + datatype + sqltwo;
	    
	    var index1 = sql.indexOf("where");
	    if(-1 != index1){
	        var sqlbefore  = sql.substr(0,index1);
	        alert(sqlbefore);
		    var sqlcontent = sql.substr(index1+5,sql.length);
		    alert(sqlcontent);
		    var index = sqlcontent.indexOf("order by");
		    var sqlone = sqlcontent.substr(0,index);
		    var sqltwo = sqlcontent.substr(index,sqlcontent.length);
		    alert(sqlone);
		    alert(sqltwo);
		    sql = sqlbefore + " where datatype="+datatype +" and ( "+sqlone+")"+sqltwo;
		    alert(sql);
	    }
	   
          	    
    }
    
    pageForm.searchSql.value = sql; 
    pageForm.action = "<%=basePath %>search/dosearch.do"+onestr;
    alert("<%=basePath %>search/dosearch.do"+onestr);
 	pageForm.submit(); 
 	*/
	//if(searchtype == 'basic_search'){
	    // alert(window.parent.searchinput.frameElement.src);
	  //  parent.top.//.frames["searchinput"].generalSearch('',datatype);
	    
		//generalSearch('',datatype);
	//}else if(searchtype == 'advsearch'){
	  //  advSearch(datatype);
	//} 
	  var stype = '<%=searchtype%>';
	  if("basic_search" == stype)   
	     window.parent.generalSearch('',datatype); 
	  else
	     window.parent.advSearch(datatype);
}
function orderResult(colname,ordernum){
	var searchtype = document.getElementById('searchtype').value; 
	//var paramstr = searchform.paramstr.value; 
	pageForm.orderName.value = colname;
	pageForm.orderNum.value = ordernum;
	var sql = pageForm.searchSql.value;
	//a.title
	//a.bookname
	//a.bookcd
	//a.PERIODICALNAME
	//a.YEARSTR
	//alert(sql);
	var orderbystr = "";
	var index = sql.indexOf("order by");
	var index1 = sql.lastIndexOf("where");
	var sqlone = sql.substr(sql,index);
	var sqltwo = sql.substr(index1,sql.length); 
	if('1' == ordernum){
		orderbystr += ' order by ' + colname + " asc";
	}else{
		orderbystr += ' order by ' + colname + " desc";
	}
	sql = sqlone + orderbystr+') ' + sqltwo;
	//alert(sql);
	pageForm.searchSql.value = sql; 
    var onestr =  "?orderName="+colname+"&orderNum="+ordernum ;
    pageForm.action = "<%=basePath %>search/dosearch.do"+onestr;
 	pageForm.submit(); 
	/**
	if(searchtype == 'advmod'){ 
		advModSearch(colname,ordernum);
	}else if(searchtype == 'advbook'){
	    advBookSearch(colname,ordernum);
	}else if(searchtype == 'adveng'){
	    advEngSearch(colname,ordernum);
	}  
	*/
}
function exportData()
{
    var papers = getSelectPaper();
    if('' == papers){
    	alert('请选择要导出的文献!');
    	return;
    }
	document.dataform.action="<%=basePath%>data/exportAllData.do?ids="+papers;	
  	document.dataform.submit();
}
function getSelectPaper(){
	var ids = document.getElementsByName("paperid");    
    var idstr = "";          
    for (var i = 0; i < ids.length; i++)               
    {                     
           if(ids[i].checked){
           	 idstr += ids[i].value+",";
           }            
    }     
    return idstr;
}
$(document).ready(function(){
	$("#tipcontain").jTipsShow({
		delaytime:200,
		tipsTag: 'span',
		tipsTitle: 'title'
	}); 
});
function downloadpdf(pid){
	openwindow('<%=basePath%>data/downloadFile.do?pid='+pid,'0','0','');
}
</script>
<style> 
 
.highlight { 
    background-color:#FF00FF; color:#FF0000;
} 

</style>
</head>
<body>
<table width="99%" align=center border="0"   style="border:1px solid #bdc0c3;" cellspacing="0" cellpadding="0">
    <tr> 
        <td colspan=2> 
          <form name="searchform" action="" method=post>
          <div class="display_mode">
                <%if("basic_search".equals(searchtype)){ %>
                <span>
                <strong><font size="2">
                <input type="radio" value="0"  name="datarange" id="datarange" <%if("0".equals(datarange)){out.println(" checked");} %> onclick="filterResult('0');"/>
                &nbsp;&nbsp;全部文献&nbsp;&nbsp;
                <input type="radio" value="1"  name="datarange" id="datarange" <%if("1".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('1');"/>
                &nbsp;&nbsp;中文期刊&nbsp;&nbsp;
                <input type="radio" value="2"  name="datarange" id="datarange" <%if("2".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('2');"/>
                &nbsp;&nbsp;英文期刊&nbsp;&nbsp;
                <input type="radio" value="3"  name="datarange" id="datarange" <%if("3".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('3');"/>
                &nbsp;&nbsp;古代文献&nbsp;</font></strong>
                </span>
                <%} %>
                <%if("advsearch".equals(searchtype)){ %>
                <span>
                <strong><font size="2">
                <input type="radio" value="0"  name="datarange" id="datarange" <%if("0".equals(datarange)){out.println(" checked");} %> onclick="filterResult('0');"/>
                &nbsp;&nbsp;全部文献&nbsp;&nbsp;
                <input type="radio" value="1"  name="datarange" id="datarange" <%if("1".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('1');"/>
                &nbsp;&nbsp;中文期刊&nbsp;&nbsp;
                <input type="radio" value="2"  name="datarange" id="datarange" <%if("2".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('2');"/>
                &nbsp;&nbsp;英文期刊&nbsp;&nbsp;
                <input type="radio" value="3"  name="datarange" id="datarange" <%if("3".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('3');"/>
                &nbsp;&nbsp;古代文献&nbsp;</font></strong>
                </span>
                <%} %>
                 
                <%if("advmod".equals(searchtype)||"adveng".equals(searchtype)){ %>
                <b><font color=red size=3>排序方式：</font>
                <a href="javaScript:orderResult('a.title','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>题名<%if("2".equals(orderNum)&&"a.title".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                <a href="javaScript:orderResult('a.PERIODICALNAME','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>刊名<%if("2".equals(orderNum)&&"a.PERIODICALNAME".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                <a href="javaScript:orderResult('a.YEARSTR','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>出版时间<%if("2".equals(orderNum)&&"a.YEARSTR".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                </b>
                
                <%} %>
                 <%if("advbook".equals(searchtype)){ %>
                <b><font color=red size=3>排序方式：</font>
                <a href="javaScript:orderResult('a.bookname','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>书名<%if("2".equals(orderNum)&&"a.bookname".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                <a href="javaScript:orderResult('a.bookcd','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>朝代<%if("2".equals(orderNum)&&"a.bookcd".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                 </b>
                 
                <%} %>
           </div>
           <input type="hidden"  value="<%=onesql %>" name="onesql" id="onesql"/> 
           <input type="hidden"  value="<%=tags==null?"":tags %>" name="tags" id="tags"/> 
           <input type="hidden"  value="<%=searchtype %>" name="searchtype" id="searchtype"/> 
           <input type="hidden"  value="<%=paramstr==null?"":paramstr %>" name="paramstr" id="paramstr"/>  
           <input type="hidden"  value="<%=onekeyword==null?"":onekeyword %>" name="onekeyword" id="onekeyword"/>  
            
          </form>
          <div id="contentarea">
          <form name="dataform" action="<%=basePath %>data/exportAllData.do" method=post>  
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="summary">
           <% if(null != datalist && datalist.size()>0){
                int counter = 0;
      		    for(int i =0;i<datalist.size();i++){
      			    Map dm = (Map)datalist.get(i);
      			    String type = dm.get("DATATYPE")+"";
      			    counter++; 
          %> 
          <tr>
            <th colspan="2" style='word-break:break-all'> <input type="checkbox" name="paperid" id="paperid" value="<%=dm.get("ID")%>"/>
                 <%=(pagecountInt*(pagenumInt-1))+i+1 %>&nbsp;&nbsp;&nbsp;
                  <%if("1".equals(type)||"2".equals(type)){
                                   String title = (String)dm.get("TITLE");
                                   if(null == title)
                                      title = "";
                                   String temp = title.length()>80?title.substring(0,80)+"...":title;
                  				   out.print("<a  href=javaScript:openwindow(\"");
                  				   out.print(basePath);
                  				   out.print("search/viewdetail.do?pid="+ dm.get("ID") );
                  				   //<font color=\"#BF0060\">
                  				   out.print("\",'800','600',''); ><span id=titleinfo title='"+title+"'>");
                                   out.print(SystemUtil.higiLight(temp,null,keyword));
                                
                                  //  out.print("</font>"); 
                                     out.print(" </span>");
                                   //out.println("("+dm.get("YEARSTR")+")-");
                                   out.print("</a>"); 
                                   }
                              else if("3".equals(type)){
                              		 out.print("<a href=javaScript:openwindow(\"");
                  				    out.print(basePath);
                  				    out.print("search/viewdetail.do?pid="+ dm.get("ID") );
                                    out.print("\",'800','600',''); id=titleinfo title='"+dm.get("BOOKNAME")+"'>");
                                    //<font color=\"#796400\">
                              		   out.print(SystemUtil.higiLight((String)dm.get("BOOKNAME"),null,keyword)); 
                                    //out.print("</font>");  
                                     out.print("</a>");
                              }%> 
               <%if("1".equals(dm.get("ISIMG")+"")&&!role4){ %>
                <input onclick="downloadpdf('<%=dm.get("ID") %>');" type="button" value="原文下载" class="origi" />
                <%}%></th>
          </tr>
          <tr>
            <td colspan="2" class="ml_45" align=left>
            <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <%if("1".equals(type)){ %> 
           
                 <tr>
	                <td><b><font color=#8FBC8F>刊名:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("PERIODICALNAME")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>作者:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHOR")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td><b><font color=#8FBC8F>第一作者单位:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHORUNIT")),null,keyword) %></td>
	              </tr>
                  <tr>
	                <td width="100"><b><font color=#8FBC8F>中文关键词:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("KEYWORD")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>中文主题词:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("SUBJECTWORD")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td><b><font color=#8FBC8F>摘要:</font></b></td>
	                <td> 
	                <%
	                String abstr = StringUtilTool.NULL2Blank((String)dm.get("ABSTRACT"));
	                if(abstr.length()>300){
	                	out.println(SystemUtil.higiLight(abstr.substring(0,300),null,keyword));
	                	out.println("...");
	                }else{
	                	out.println(SystemUtil.higiLight(abstr,null,keyword));
	                } 
	                 %>
	                </td>
	              </tr> 
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>年份/卷/期/页码:</font></b></td>
	                <td ><%=StringUtilTool.NULL2Blank((String)dm.get("YEARSTR")) %>-<%=StringUtilTool.NULL2Blank((String)dm.get("VOLUME")) %>-<%= StringUtilTool.NULL2Blank((String)dm.get("PERIOD"))%>-<%=StringUtilTool.NULL2Blank((String)dm.get("PAGENO")) %></td>
	              </tr> 
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>基金:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("FUNDNAME")),null,keyword) %></td>
	              </tr> 
	               <%}else if("2".equals(type)) {%>  
	               
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>英文作者:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHOR")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>英文作者地址:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHORADDRESS")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>英文刊名:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("PERIODICALNAME")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>年份/卷/期/页码:</font></b></td>
	                <td ><%=StringUtilTool.NULL2Blank((String)dm.get("YEARSTR")) %>-<%=StringUtilTool.NULL2Blank((String)dm.get("VOLUME")) %>-<%= StringUtilTool.NULL2Blank((String)dm.get("PERIOD"))%>-<%=StringUtilTool.NULL2Blank((String)dm.get("PAGENO")) %></td>
	              </tr>
                   <tr>
	                <td width="100"><b><font color=#8FBC8F>英文关键词:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("KEYWORD")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>英文主题词:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("SUBJECTWORD")),null,keyword) %></td>
	              </tr> 
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>英文摘要:</font></b></td>
	                <td > <%
	                String abstr = StringUtilTool.NULL2Blank((String)dm.get("ABSTRACT"));
	                if(abstr.length()>300){
	                	out.println(SystemUtil.higiLight(abstr.substring(0,300),null,keyword));
	                	out.println("...");
	                }else{
	                	out.println(SystemUtil.higiLight(abstr,null,keyword));
	                }
	                
	                 %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>出版地:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("PUBLISHAREA")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>文献类型:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("DOCUMENTTYPE")),null,keyword) %></td>
	              </tr> 
	               <%}else if("3".equals(type)) {%>
	              
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>作者:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHOR")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>朝代:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("BOOKCD")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>中医病名:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("TCMNAME")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>卷册章节:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("VOLUMESECTION")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>版本:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("BOOKVERSION")),null,keyword) %></td>
	              </tr> 
	              <tr>
	                <td><b><font color=#8FBC8F>原文文本化:</font></b></td>
	                <td> <%
	                String abstr = StringUtilTool.NULL2Blank((String)dm.get("ORIGINALTEXT"));
	                if(abstr.length()>300){
	                	out.println(SystemUtil.higiLight(abstr.substring(0,300),null,keyword)); 
	                	out.println("...");
	                }else{
	                	out.println(SystemUtil.higiLight(abstr,null,keyword));
	                }
	                
	                 %></td>
	              </tr> 
	              <%} %>
            </table>
            
            
            </td>
          </tr> 
          <%}}else{ %>
          <tr>
            <td colspan="2" align="center" class="ml_45">
	             <font color=red size=5>没有符合查询条件的结果!</font>
	        </td>
          </tr>  
          <%} %>
        </table>  
        </form>
         </div>
        <div class="page">
            <p>
                <%=pageStr%>
            </p>
            <input onclick="selectAll(true,'paperid');" type="button" value="全选" class="all_s"/>
            <input onclick="selectAll(false,'paperid');" type="button" value="清除" class="clear"/>
            <input onclick="exportData();" type="button" value="导出" class="saver"/>
        </div>
        </td>
    </tr>
</table>
</body>
</html>
<script>
   

<%if(null != keyword && !"".equals(keyword)){%>
  	// var divObj=document.getElementById("titleinfo"); 
  	// alert(divObj.length);
  	// MarkHighLight(divObj,"<%=keyword%>"); 
  <%}%>
</script>
